const common = require('./common');
const lang = require('../lang/language');

module.exports = (ctx, code, data, msg, token) => {
    //ctx.response.set("Access-Control-Allow-Origin", "*");
    // msg = lang(ctx.request.header.lang,msg);
    msg = lang(ctx, msg);
    ctx.body = common.handleResulte(code, data, msg,'',token);
}